const http = uni.$u.http
const prefix = '/no-auth/third-party'
export default {
	// 发送短信
	sendShort: (params) => http.post(`${prefix}/aliyun/send-short`,
		params
	),

	// 上传文件
	uoloadFile: (params) => http.upload(`${prefix}/aliyun/uoload-file`, {
		name: 'file',
		filePath: params.file[0].url
	}),

	// 获取两点的骑行距离
	bicycling: (params) => http.post(`${prefix}/tenxun/map/bicycling`, params)
}
